Skip to content

Fix formatting of PR refs in release notes#23434

Open
mikeCRL wants to merge 3 commits into
mainfrom
fix-rn-issue-ref-indendation
Open

Fix formatting of PR refs in release notes#23434
mikeCRL wants to merge 3 commits into
mainfrom
fix-rn-issue-ref-indendation

Conversation

@mikeCRL
Copy link
Copy Markdown
Contributor

@mikeCRL mikeCRL commented Jun 1, 2026

Fixed instances of PR references being interpreted as H1 headings.

Since #23301, instances of continuation text (multi-paragraph bullets) followed by an PR reference on its own line, would have that reference and all others in the section (until the next intentional heading) interpreted as H1s.

This may have only affected sections of 3 releases' notes, but to be thorough/consistent, I made the following changes across the board:

  • For single-line bullets, moved the reference to the end of the bullet's single line.
  • For continuation bullets, matched the indentation of the continuation text, and prepended a \ to the reference.

Example changes:

For single-line bullets:

Before:

- Fixed a slow memory leak that was introduced in v25.1.8.
 #149921

After:

- Fixed a slow memory leak that was introduced in v25.1.8. #149921

For continuation bullets:

Before:

- The `RESET ALL` statement no longer affects the following session variables:
  - `is_superuser`
  - `role`
  - `transaction_read_only`
  
    This better matches PostgreSQL behavior for `RESET ALL`.
 #149388

After:

- The `RESET ALL` statement no longer affects the following session variables:
  - `is_superuser`
  - `role`
  - `transaction_read_only`
  
    This better matches PostgreSQL behavior for `RESET ALL`.

    \#149388

Example of the bug

From https://www.cockroachlabs.com/docs/releases/v25.2#v25-2-3:

Screenshot 2026-06-01 at 4 00 25 PM

Fix issue references that were being interpreted as markdown headings
by increasing their indentation to match preceding continuation text.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit 3dddffa
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/6a1df3f8dc13010009c6a566

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Files changed:

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit 3dddffa
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/6a1df3f8c6b1a00008bc20be

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Netlify Preview

Name Link
🔨 Latest commit 3dddffa
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/6a1df3f8c6440e0008e468b3
😎 Deploy Preview https://deploy-preview-23434--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mikeCRL mikeCRL changed the title fix: correct indentation of issue refs in release notes Fix indentation of some issue refs in release notes Jun 1, 2026
mikeCRL and others added 2 commits June 1, 2026 16:45
Add backslash escaping to issue references that would otherwise be
interpreted as markdown headings due to starting with #.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
Move all issue references to be inline at the end of simple
single-paragraph bullets instead of on their own lines, preventing
them from being interpreted as H1 headings.

This fixes 401 instances across 43 release note files.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@mikeCRL mikeCRL changed the title Fix indentation of some issue refs in release notes Fix formatting of issue refs in release notes Jun 1, 2026
@mikeCRL mikeCRL requested review from ebembi-crdb and rmloveland June 1, 2026 21:19
@mikeCRL mikeCRL changed the title Fix formatting of issue refs in release notes Fix formatting of PR refs in release notes Jun 1, 2026
@ebembi-crdb
Copy link
Copy Markdown
Contributor

@mikeCRL is this a regression or is it something that was there from the beginning that started causing problems now?
Thanks for finding and fixing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants